<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ProcessaAdicionarUsuario
 *
 * @author antonio
 */
class ProcessaExcluirUsuario extends IAbstractInterface implements IIntfacePagina {
    
    
    public function __construct($server, $banco, $login, $senha, $parametros = "") {
        parent::__construct($server, $banco, $login, $senha, $parametros);
        $this->gerarPagina();
    }

    

    public function gerarPagina() {
               
        $con  = new Conexcao($this->server,
                $this->banco,
                $this->login,
                $this->senha);
              
        $usuarioDao = new UsuarioDAO($con->conec);
        
        $usuarioDao->deletarUsuario($_POST['passwd']);
        
        echo '<script>alert("'.$usuarioDao->message.'")</script>';
        
    }    //put your code here
}

?>
